﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
  <class name="Gp.Examples.FullCalendar.Core.Event, Gp.Examples.FullCalendar.Core" table="events">
    <id name="Id" column="event_id">
      <generator class="native" />
    </id>

    <property name="Title" column ="title"/>
    <property name="FromDate" column ="from_date"/>
    <property name="ToDate" column ="to_date"/>

    <many-to-one name="User" column="user_id" not-null="true" />
  </class>
</hibernate-mapping>